﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DataBroker.Dal;
using NorthwindDAO;
using NUnit.Framework;

namespace D2BkTest
{
    [TestFixture]   
    public class InsertTest
    {
        [SetUp]
        public void SetUp()
        {
            D2Bk.ChangeDatabase("Northwind");
        }
        [Test]
        public void InsertTerritories()
        {
            Territories t = new Territories();
            t.Territoryid = "32301";
            t.Territorydescription = "Tallahassee";
            t.Regionid = 1; 
            int rowsAffected = D2Bk.SaveOne(t);
        }
    }
}
